<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>添加产品线商品</title>
<script type="text/javascript" src="../boot.js"></script>
<script>
var tbgrid;
function parsePage(){

$('select').combobox({
	prompt:'请选择...',
data:[{value:'0',text:'下拉框'}],
	valueField:'value',
	textField:'text'
});

tbgrid = $('#tbList').datagrid({
				data:{"total":1,"rows":[{'id':'1','col1':'2013-9-10 16:06:34','col2':'批量添加商品','col3':'他她产品线','col4':'地面分销','col5':'--','col6':'--','col7':'3.00','col8':'1.00','col9':'超级管理员','col51':'--','col52':'--','col53':'--','col54':'2.4','col61':'1.3','col62':'--','col63':'--','col64':'--'}]},
				singleSelect:true,
		    columns:[[
					{
					title:'变动时间',
					field:'col1',
					width:120,
					rowspan:2
					},{
					title:'变动类型',
					field:'col2',
					width:80,
					rowspan:2
					},{
					title:'产品线',
					field:'col3',
					width:80,
					rowspan:2
					},{
					title:'分销业务类型',
					field:'col4',
					width:80,
					rowspan:2
					},{
					title:'修改前的授权价',
					colspan:4
					},{
					title:'修改后的授权价',
					colspan:4
					},{
					title:'市场价',
					field:'col7',
					width:60,
					rowspan:2,
					align:'right'
					},{
					title:'优购价',
					field:'col8',
					width:60,
					rowspan:2,
					align:'right'
					},{
					title:'操作人',
					field:'col9',
					width:80,
					rowspan:2
					}],
					[{
					title:'VIP1',
					field:'col51',
					width:40,
					align:'right'
					},
					{
					title:'VIP2',
					field:'col52',
					width:40,
					align:'right'
					},
					{
					title:'VIP3',
					field:'col53',
					width:40,
					align:'right'
					},
					{
					title:'VIP4',
					field:'col54',
					width:40,
					align:'right'
					},{
					title:'VIP1',
					field:'col61',
					width:40,
					align:'right'
					},
					{
					title:'VIP2',
					field:'col62',
					width:40,
					align:'right'
					},
					{
					title:'VIP3',
					field:'col63',
					width:40,
					align:'right'
					},
					{
					title:'VIP4',
					field:'col64',
					width:40,
					align:'right'
					}]
					]

	});

}


function del(id){
	if(id.length<=0){
		showError('请选择需要删除的项目！');
		return;
	}
	showConfirm('确认删除吗？',function(){
		showSuc('删除成功！'+id);
		tbgrid('deleteRow',0);
		tbgrid('reload');
	});
}


function add(){
	parent.addBlankTab({
		title:'添加产品线',
		href:'goods/commdity-line-add.html'
		});
}
</script>
</head>

<body class="easyui-layout">

<div  data-options="region:'center',border:false">
    <!--subLayout start-->
    <div class="easyui-layout" data-options="fit:true" id="subLayout">
        <!--搜索start-->
        <div data-options="region:'north',border:false" >
            <div class="search-div">
                <form name="searchForm" id="searchForm" action="" method="post" >
                    <table class="search-tb" >
                        <col width="80" />
                        <col/>
                        <col width="80" />
                        <col/>
                        <col width="80" />
                        <col/>
                        <tbody>
                            <tr>
                                <th>变动分类：</th>
                                <td><select>
                                    </select></td>
                                <th>操作人：</th>
                                <td><input class="ipt" type="text" /></td>
                                <th>创建时间：</th>
                                <td ><input class="ipt easyui-datebox w80" /> - <input class="ipt easyui-datebox w80" /> <a class="easyui-linkbutton ml10" id="SearchBtn">搜索</a></td>
                            </tr>
                        </tbody>
                    </table>
                </form>
            </div>
        </div>
        <!--搜索end--> 
        <!--列表-->
        <div data-options="region:'center',border:false">
            <table id="tbList">
            </table>
        </div>
    </div>
    <!--subLayout end-->
</div>
</body>
</html>
